We are migrating the bug tracker to github Issues. This is now the preferred way to report NASM bugs.
Self-registration is disabled due to spam issue (mail gorcunov@gmail.com or hpa@zytor.com to create an account)
The documented output choices of stderr, stdout, and an explicit file all work. What doesn't work is when the file is specified with a directory that doesn't exist. I expected a warning or an error message but NASM appears to remain silent. test$ cat test.asm [map brief _MAP] section FOO times 16 nop section BAR test$ nasm -v NASM version 2.16.02rc2 compiled on Oct 12 2023 test$ nasm test.asm -D_MAP=stderr - NASM Map file --------------------------------------------------------------- Source file: test.asm Output file: test -- Program origin ------------------------------------------------------------- 00000000 -- Sections (summary) --------------------------------------------------------- Vstart Start Stop Length Class Name 0 0 0 00000000 progbits .text 0 0 10 00000010 progbits FOO 10 10 10 00000000 progbits BAR test$ nasm test.asm -D_MAP=stdout - NASM Map file --------------------------------------------------------------- Source file: test.asm Output file: test -- Program origin ------------------------------------------------------------- 00000000 -- Sections (summary) --------------------------------------------------------- Vstart Start Stop Length Class Name 0 0 0 00000000 progbits .text 0 0 10 00000010 progbits FOO 10 10 10 00000000 progbits BAR test$ nasm test.asm -D_MAP=test.lst test$ rm test.lst test$ nasm test.asm -D_MAP=quux/test.lst test$ ls test test.asm test$ ~/proj/nasmtest/patch/nasm -v NASM version 2.17rc0 compiled on Sep 3 2025 test$ ~/proj/nasmtest/patch/nasm test.asm -D_MAP=stderr - NASM Map file --------------------------------------------------------------- Source file: test.asm Output file: test -- Program origin ------------------------------------------------------------- 00000000 -- Sections (summary) --------------------------------------------------------- Vstart Start Stop Length Class Name 0 0 0 00000000 progbits .text 0 0 10 00000010 progbits FOO 10 10 10 00000000 progbits BAR test$ ~/proj/nasmtest/patch/nasm test.asm -D_MAP=stdout - NASM Map file --------------------------------------------------------------- Source file: test.asm Output file: test -- Program origin ------------------------------------------------------------- 00000000 -- Sections (summary) --------------------------------------------------------- Vstart Start Stop Length Class Name 0 0 0 00000000 progbits .text 0 0 10 00000010 progbits FOO 10 10 10 00000000 progbits BAR test$ ~/proj/nasmtest/patch/nasm test.asm -D_MAP=test.lst test$ rm test.lst test$ ~/proj/nasmtest/patch/nasm test.asm -D_MAP=quux/test.lst test$ ls test test.asm test$
This warning (which I guess never appeared?) has now been promoted to a warning, which is what it should have been all along.
Promoted to an *error*. This will be in 3.00rc10.
Yes, the warning wasn't shown ever in my tests. Thanks, it works as expected now.